import { registerMicroApps, start } from 'qiankun';
const loader = (loading) => {
  console.log(loading);
};

registerMicroApps([
  {
    name: 'm-vue',
    entry: '//localhost:20000',
    constainer: '#container',
    activeRule: '/vue',
    loader
  },
  {
    name: 'm-react',
    entry: '//localhost:30000',
    constainer: '#container',
    activeRule: '/react',
    loader
  }
],{
  beforeLoad:()=>{
    console.log('加载前');
  },
  beforeMount:()=>{
    console.log('挂载前');
  },
  afterMount:()=>{
    console.log('挂载后');
  },
  beforeUnmount:()=>{
    console.log('销毁前');
  },
  afterUnmount:()=>{
    console.log('销毁后');
  },
});


start();
